
<template>
    <p>
        2. Mock 数据：mockjs && vite-plugin-mock
        <button @Click="getUsers">Get Users</button>
    </p>
</template>

<script>
import axios from 'axios'

export default {
    setup() {

        const getUsers = async () => {
            const users = await axios.get('/api/getUsers')
            console.log('users', users.data)
        }
        return { getUsers }
    }
}
</script>

<style lang="scss" scoped>
</style>